package com.ciaojian.core.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 裂变活动表
 * </p>
 *
 * @author ZiCong
 * @since 2021-09-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("d_marketing_share")
public class MarketingShare extends Model<MarketingShare> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("活动名字")
    private String name;

    @ApiModelProperty("限制人数")
    private Integer limitNum;

    /**
     * 邀请人获得券或券包 0券 1券包
     */
    @ApiModelProperty(hidden = true)
    private Boolean inviterCoupon;

    @ApiModelProperty("邀请人获得券id或券包id")
    private Integer inviterCouponId;

    @ApiModelProperty("背景图")
    private String img;

    /**
     * 被分享者获得券或券包 0券 1券包
     */
    @ApiModelProperty(hidden = true)
    private Boolean shareCoupon;

    @ApiModelProperty("邀请人获得券id或券包id")
    private Integer shareCouponId;

    @ApiModelProperty(value = "0显示 1隐藏", hidden = true)
    private Boolean hidden;

}
